<?php /* EL PSY CONGROO */    	   	  	
require '../../../../zb_system/function/c_system_base.php';     	  	   
require '../../../../zb_system/function/c_system_admin.php';     		 			 
$zbp->Load();       	  		
$action='root';      				  
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}     	 		  	
if (!$zbp->CheckPlugin('San_Rabbit')) {$zbp->ShowError(48);die();}    					 		
$blogtitle='主题配置';    	 				 	
require $blogpath . 'zb_system/admin/admin_header.php';    	 			 		
require $blogpath . 'zb_system/admin/admin_top.php';     			 	  
require $blogpath . 'zb_users/theme/San_Rabbit/plugin/header.php';      		  	 
if(isset($_POST['Data'])){     	 	   	
    if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();      		    
	foreach($_POST['Data'] as $key=>$val){       				 
	   $zbp->Config('San_Rabbit')->$key = $val;          	 
	}      		    
	$zbp->SaveConfig('San_Rabbit');       	 			
	$zbp->ShowHint('good');    	  	   	
}        	 	 
?>

<div class="page">
          
            <div class="left-admin-menu">
                <nav class="admin-menu">
                  <ul id="treeMenu" class="tree tree-menu" data-ride="tree">
                    <?php San_Rabbit_SubMenu(2);?>
                    
                  </ul>
                </nav>
            </div>
            <div class="content">
            	
                <div class="panel">
                    <div class="panel-heading">
                        <strong><i class="icon icon-inbox"></i>&nbsp;&nbsp;底部设置</strong>
                    </div>
                    <div class="table-border">
                         <form id="form1" name="form1" method="post">
                            <table class="table table-line-height table-details table-hover ">
                                <tbody>
									<tr>
										<td>
											<p align="center">底部模块一</p>
										</td>
										<td>
											<p align="left">
												<textarea rows="8" name="Data[footer_mod_one]" type="text" id="footer_mod_one" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->footer_mod_one;?></textarea>
											</p>
										</td>
										<td><p align="left">自定义模块内容</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">底部模块二</p>
										</td>
										<td>
											<p align="left">
												<textarea rows="6" name="Data[footer_mod_two]" type="text" id="footer_mod_two" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->footer_mod_two;?></textarea>
											</p>
										</td>
										<td><p align="left">自定义模块内容</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">底部模块三</p>
										</td>
										<td>
											<p align="left">
												<textarea rows="8" name="Data[footer_mod_three]" type="text" id="footer_mod_three" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->footer_mod_three;?></textarea>
											</p>
										</td>
										<td><p align="left">自定义模块内容</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">底部版权信息</p>
										</td>
										<td>
											<p align="left">
												<textarea rows="8" name="Data[footer_copyright]" type="text" id="footer_copyright" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->footer_copyright;?></textarea>
											</p>
										</td>
										<td><p align="left">自定义模块内容</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">底部备案信息</p>
										</td>
										<td>
											<p align="left">
												<textarea rows="8" name="Data[footer_beian]" type="text" id="footer_beian" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->footer_beian;?></textarea>
											</p>
										</td>
										<td><p align="left">自定义模块内容</p></td>
									</tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCSRFToken(); ?>">
                                            <button type="Submit" class="btn btn-primary">提交</button>
                                          
                                        </td>
                                    </tr> 
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                
                

            </div>
        <div class="copyright">
            <p>三十工作室</p>
        </div>
		
	</div>	

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';    			   		
RunTime();         			
?>